package com.company;

import java.util.Random;

public class Main {

    public static void main(String[] args) {
	// write your code here

        metheod();
        metheod1();
    }
    public static void metheod(){
        int[] a={31,28,31,30,31,30,31,30,31,30,31,30};
      for (int i=0;i<=a.length;i++){
          System.out.println(i+1+"月有"+a[i]+"天");
      }
    }

    public static void metheod1(){
        int[] a=new int[10];
        for (int i=0;i<=a.length-1;i++){
            a[i]=new Random().nextInt(100);
            System.out.println(a[i]);
        }
    }
}
